package br.com.regex;

import java.util.Arrays;

public class UsaSplit {
	public static void main(String[] args) {
		Imprime2();
		
	}


	public static void Imprime2() {
		String s = "asdfj2034nmfas1d02389";
		String[] a = s.split("\\d\\d?");
		System.out.println(Arrays.toString(a));
		System.out.println(a.length);
		
	}
	
	
	
	public static void Imprime1() {
		String s = "Jim and Tim";
		String[] a = s.split("\\S");
		
		System.out.println(a.length);
		for (String indice : a){
			
			System.out.println(indice.length());
			if (a.equals(" ")){
				System.out.println("espaco");
			}
		}
	}
}
